<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
  'id'=>'page-form',
  'enableAjaxValidation'=>false,
)); ?>

  <p class="note">Fields with <span class="required">*</span> are required.</p>

  <?php echo $form->errorSummary($model); ?>

  <div class="row">
    <h2><?php echo $model->name_en;?></h2>
  </div>
  
  <?
    $this->widget('zii.widgets.jui.CJuiTabs', array(
      'tabs'=>array(
        'English' =>$this->renderPartial('_formDetail', array('model' => $model, 'form' => $form, 'language' => 'en'), $this),
        'Thai'=>$this->renderPartial('_formDetail', array('model' => $model, 'form' => $form, 'language' => 'th'), $this),
      )
    ));
  ?>  

  <div class="row buttons">
    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
  </div>

<?php $this->endWidget(); ?>

</div><!-- form -->